import { createRouter, createWebHistory } from 'vue-router'

const routes = [
	{
		path: '/',
		name: 'Index',
		meta: {
			title: '首页',
			keepAlive: false,
			requireAuth: true,
		},
		component: () => import('@/pages/index.vue')
	},
	{
		path: '/hello',
		name: 'Hello',
		meta: {
			title: 'hello',
			keepAlive: true,
			requireAuth: false,
		},
		component: () => import('@/pages/hello.vue')
	},
]

const router = createRouter({
	history: createWebHistory(),
	routes,
})

export default router